<?php
    $xtpl_show      = new XTemplate("view/product/show.htm");
    
    $title  = "Thông tin sản phẩm";
    $id     = $_GET['id'];
    
    $sql    = "SELECT * FROM product WHERE id_p='" . $id . "'";
    $result = mysql_query($sql);
    $row    = mysql_fetch_array($result);
    
    $xtpl_show      -> assign('image', $row['image']);
    $xtpl_show      -> assign('id1', $id);
    $xtpl_show      -> assign('id2', $id);
    $xtpl_show      -> assign('provider', $row['provider']);
    $xtpl_show      -> assign('milkname', $row['milkname']);
    $xtpl_show      -> assign('size', $row['size']);
    $xtpl_show      -> assign('weight', $row['weight']);
    $xtpl_show      -> assign('cost', $row['cost']);
    $xtpl_show      -> assign('number', $row['number']);
    $xtpl_show      -> assign('content', $row['content']);

    $xtpl_show      -> parse("SHOW");
    $content        = $xtpl_show -> text("SHOW");
?>